package cn.com.taurus.impl;

import cn.com.taurus.bean.DealMessageBean;
import cn.com.taurus.bean.DealMessageWebBean;
import cn.com.taurus.entity.DealMessage;
import cn.com.taurus.mapper.ClientAccountMapper;
import cn.com.taurus.mapper.DealMessageMapper;
import cn.com.taurus.service.DealMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;
/**
 * @author zhy
 * @createTime 2021-6-3 20:49:18
 * @remark 交易申请Impl层
 * @version 1.0
 */
@Service
public class DealMessageImpl implements DealMessageService {
    @Autowired
    DealMessageMapper dealMessageMapper;

    @Override
    public Integer selectDmIdValue() {
        return dealMessageMapper.selectDmIdValue();
    }

    @Override
    public int buyApplication(DealMessage dealMessage) {
        return dealMessageMapper.buyApplication(dealMessage);
    }

    @Override
    public int buyApplicationUpdate(DealMessage dealMessage) {
        return dealMessageMapper.buyApplicationUpdate(dealMessage);
    }

    @Override
    public int buyApplicationDelete(Integer dmId) {
        return dealMessageMapper.buyApplicationDelete(dmId);
    }

    @Override
    public List<DealMessage> buyApplicationSelectAll() {
        return dealMessageMapper.buyApplicationSelectAll();
    }

    @Override
    public List<DealMessageWebBean> selectDealMessageCaId(Integer caId){
        return dealMessageMapper.selectDealMessageCaId(caId);
    }

    @Override
    public DealMessage buyApplicationSelectOne(Integer dmId) {
        return dealMessageMapper.buyApplicationSelectOne(dmId);
    }

    @Override
    public List<DealMessageBean> conditionSelectDealMessage(String caId, String fId, String applyBuy, String applyTime, String time){
        return dealMessageMapper.conditionSelectDealMessage(caId,fId,applyBuy,applyTime,time);
    }
}
